package com.moneycollect.example.classloader.testapp.controller;

import com.moneycollect.example.classloader.service.EncryptService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author xuhuiqian
 * @since 2022/5/27 15:18
 */
@RestController("test")
public class TestController {
    @Resource
    EncryptService encryptService;

    @GetMapping("get")
    public String testEncryptClassBean(@RequestParam String content) {
        return encryptService.encrypt(content);
    }
}
